from base import DirMetaClass

# pytest配置参数
addopts = '-s -v --tb=short'
testpaths = 'test_case'  # 路径
python_files = 'test_05.py'  # 文件
python_classes = 'A01'  # 类
python_functions = 'test*'  # 函数

webDriver_wait = 3  # 显示等待时间
implicitly_wait = 5  # 隐式等待时间
rerun = 0  # 失败重跑次数

# package = 'cn.com.open.mooc'
# activity = 'com.imooc.component.imoocmain.splash.MCSplashActivity'
devices = '192.168.31.238:5501'
# devices = '66b5da5a'

appium_port01 = 4701
appium_port02 = 4702
appium_address = '127.0.0.1'


# 文件路径
class FileDir(metaclass=DirMetaClass):
    dir_report = '\\z_report\\'  # 报告文件路径
    dir_log = '\\z_logs\\'  # 日志文件路径
    dir_apk = '\\...'  # app的.apk安装包路径
    appium_log = '\\z_logs\\appium.log'
    pytest_ini = r'\pytest.ini'


# 包名与activity
package = 'com.android.settings'
activity = '.Settings'

# apk_path = \util\io.manong.developerdaily_3.5.2_19102602.apk
# apk_path = \util\com.tengchi.zxyjsc_5.0.1_501.apk
# dir_apk = \util\cn.com.open.mooc_7.2.7_7270.apk

# 包名与activity
# package = 'io.manong.developerdaily'
# activity = 'io.toutiao.android.ui.activity.LaunchActivity'

# 微信
# package_wx = com.tencent.mm
# activity_wx = .ui.LauncherUI
# devices = 127.0.0.1:62001
# devices = 127.0.0.1:7555


file_dir = FileDir

if __name__ == '__main__':
    print(file_dir.pytest_ini)
